package com.zx.web.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity：ECR表 [engine:InnoDB,type:BASE TABLE,catalog:def,schema:file,name:ecr,auto:].
 * @author Ken
 * @since 2017-04-23 22:41
 * @version v1.0.0
 */
@Entity
@Table(name = "ecr")
public class Ecr implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 图纸编号*/
    @Id
    @Column(name = "no")
    private String no;// 图纸编号,key:PRI,null:NO,type:varchar,charset:utf8,default: ,maxLen:100

    /** 名字*/
    @Column(name = "name")
    private String name;// 名字,key:UNI,null:NO,type:varchar,charset:utf8,default: ,maxLen:250

    /** 路径,字典代指*/
    @Column(name = "path")
    private String path;// 路径,字典代指,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:250

    /** 图纸链接*/
    @Column(name = "links")
    private String links;// 图纸链接,key:,null:NO,type:longtext,charset:utf8,default: ,maxLen:4,294,967,295

    /** 分类*/
    @Column(name = "category")
    private String category;// 分类,key:,null:YES,type:varchar,charset:utf8,default: ,maxLen:100

    /** 创建者*/
    @Column(name = "creator")
    private String creator;// 创建者,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:20

    /** 创建时间*/
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "time_create")
    private Date timeCreate;// 创建时间,key:,null:NO,type:datetime,charset:,default: ,maxLen:

    /** 修改者*/
    @Column(name = "editor")
    private String editor;// 修改者,key:,null:YES,type:varchar,charset:utf8,default: ,maxLen:20

    /** 更新时间*/
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "time_update")
    private Date timeUpdate;// 更新时间,key:,null:YES,type:datetime,charset:,default: ,maxLen:

    /** 状态,1OK,-1文件不存在*/
    @Column(name = "status")
    private Integer status;// 状态,1OK,-1文件不存在,key:,null:NO,type:int,charset:,default: 1,maxLen:

    // @Transient
    // private Object transientFiled;

    public Ecr() {}

    /**
     * 获取图纸编号.
     */
    public String getNo() {
        return this.no;
    }

    /**
     * 设置图纸编号.
     */
    public void setNo(String no) {
        this.no = no;
    }

    /**
     * 获取名字.
     */
    public String getName() {
        return this.name;
    }

    /**
     * 设置名字.
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取路径,字典代指.
     */
    public String getPath() {
        return this.path;
    }

    /**
     * 设置路径,字典代指.
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * 获取图纸链接.
     */
    public String getLinks() {
        return this.links;
    }

    /**
     * 设置图纸链接.
     */
    public void setLinks(String links) {
        this.links = links;
    }

    /**
     * 获取分类.
     */
    public String getCategory() {
        return this.category;
    }

    /**
     * 设置分类.
     */
    public void setCategory(String category) {
        this.category = category;
    }

    /**
     * 获取创建者.
     */
    public String getCreator() {
        return this.creator;
    }

    /**
     * 设置创建者.
     */
    public void setCreator(String creator) {
        this.creator = creator;
    }

    /**
     * 获取创建时间.
     */
    public Date getTimeCreate() {
        return this.timeCreate;
    }

    /**
     * 设置创建时间.
     */
    public void setTimeCreate(Date timeCreate) {
        this.timeCreate = timeCreate;
    }

    /**
     * 获取修改者.
     */
    public String getEditor() {
        return this.editor;
    }

    /**
     * 设置修改者.
     */
    public void setEditor(String editor) {
        this.editor = editor;
    }

    /**
     * 获取更新时间.
     */
    public Date getTimeUpdate() {
        return this.timeUpdate;
    }

    /**
     * 设置更新时间.
     */
    public void setTimeUpdate(Date timeUpdate) {
        this.timeUpdate = timeUpdate;
    }

    /**
     * 获取状态,1OK,-1文件不存在.
     */
    public Integer getStatus() {
        return this.status;
    }

    /**
     * 设置状态,1OK,-1文件不存在.
     */
    public void setStatus(Integer status) {
        this.status = status;
    }
}
